<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>apidoc</title>
    <style>
        body,td,th {font-family: 微软雅黑,Consolas,sans-serif,sans-serif;font-size: 14px;color: #1d1007; line-height:28px}
        h3 {font-family: 微软雅黑, sans-serif;color: #2d2eb4;}
        td,th {
            border: 1px solid #decaca;
            padding: 4px 4px;
            vertical-align: top;
            max-width: 800px;
            min-width: 70px;
        }
        table {
            display: table;
            border-spacing: 2px;
            border-collapse: collapse;
        }
        th{
            background-color: blanchedalmond;
        }
        table tr:nth-child(odd){background:#F4F4F4;}
    </style>
</head>
<body>
<h2>${name}</h2>
<p>
    ${comment}<br>
    ${detail}
</p>

<h2>目录</h2>
<ul>
<#list methods as method>
    <li>
        <a href="#${method.name}">${method.name}：${method.comment}</a>
    </li>
</#list>
</ul>

<h2>api文档</h2>
<#list methods as method>
        <h3 id="${method.name}">${method.name}：${method.comment}</h3>
        <b>描述</b>：${method.detail}<br/>
        <b>请求地址</b>：<br/>

                <li>dev环境：<a href="${method.devUrl}">${method.devUrl}</a></li>
                <li>test环境：<a href="${method.testUrl}">${method.testUrl}</a></li>
                <li>prod环境：<a href="${method.prodUrl}">${method.prodUrl}</a></li>

        <b>请求方式</b>：${method.method}<br/>
        <b>Content-Type</b>：${method.contentType}<br/>
        <p><b>请求参数</b></p>
        <table>
            <tr>
                <th>参数</th>
                <th>类型</th>
                <th>中文</th>
                <th>说明</th>
            </tr>
            <#list method.params as param>
                <tr>
                    <td>${param.name}</td>
                    <td>${param.type}</td>
                    <td>${param.comment}</td>
                    <td>${param.detail}</td>
                </tr>
            </#list>
        </table>

        <p><b>返回参数</b></p>
        <table>
            <tr>
                <th>参数</th>
                <th>类型</th>
                <th>中文</th>
                <th>说明</th>
            </tr>
            <#list method.returnParams as param>
                <tr>
                    <td>${param.name}</td>
                    <td>${param.type}</td>
                    <td>${param.comment}</td>
                    <td>${param.detail}</td>
                </tr>
            </#list>
        </table>

<p>------------------------------------------ generate by com.flash.javamate @sunyiming -----------------------------------------</p>

</#list>
</body>
</html>